]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensions-app: Pick up app ID from package
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 22 Jan 2021 21:08:41 +0000 (22:08 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 11 Feb 2021 16:45:00 +0000 (17:45 +0100)
This will allow us to build different applications from the
same sources (namely "Extensions" and "Extensions Nightly").

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3612

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1661>

subprojects/extensions-app/js/main.js

index 5b5a6e403627abe01ee226266aa1ca5a4b8d36f9..d4b6ec79fde377748f4ec07e310dda7d906a1546 100644 (file)
@@ -41,7 +41,7 @@ var Application = GObject.registerClass(
 class Application extends Gtk.Application {
     _init() {
         GLib.set_prgname('gnome-extensions-app');
-        super._init({ application_id: 'org.gnome.Extensions' });
+        super._init({ application_id: Package.name });
 
         this.connect('window-removed', (a, window) => window.run_dispose());
     }
@@ -217,8 +217,8 @@ var ExtensionsWindow = GObject.registerClass({
             program_name: _('Extensions'),
             comments: _('Manage your GNOME Extensions'),
             license_type: Gtk.License.GPL_2_0,
-            logo_icon_name: 'org.gnome.Extensions',
-            version: imports.package.version,
+            logo_icon_name: Package.name,
+            version: Package.version,
 
             transient_for: this,
             modal: true,